package com.rui1024.pojo;

import java.sql.Date;

public class Order {
	private int orderId;
	private int foodId;
	private int amount;
	private Date orderTime;
	private String foodName;

	private int amountOrder;
	private int priceOrder;

	public Order(int orderId, int foodId, int amount, Date orderTime) {
		this.orderId = orderId;
		this.foodId = foodId;
		this.amount = amount;
		this.orderTime = orderTime;
	}

	public Order(int orderId, int foodId, String foodName, int amount, Date orderTime) {
		this.orderId = orderId;
		this.foodId = foodId;
		this.foodName = foodName;
		this.amount =amount;
		this.orderTime = orderTime;
	}

	public Order() {
	}

	@Override
	public String toString() {
		return "Order{" +
				"orderId=" + orderId +
				", foodId=" + foodId +
				", amount=" + amount +
				", orderTime=" + orderTime +
				", foodName='" + foodName + '\'' +
				", amountOrder=" + amountOrder +
				", priceOrder=" + priceOrder +
				'}';
	}

	public String getFoodName() {
		return foodName;
	}

	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	public Date getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	public int getOrderId() {
		return orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	public int getFoodId() {
		return foodId;
	}

	public void setFoodId(int foodId) {
		this.foodId = foodId;
	}

	public int getAmountOrder() {
		return amountOrder;
	}

	public void setAmountOrder(int amountOrder) {
		this.amountOrder = amountOrder;
	}

	public int getPriceOrder() {
		return priceOrder;
	}

	public void setPriceOrder(int priceOrder) {
		this.priceOrder = priceOrder;
	}
}
